package com.xyf.sys.enums;

/**
 * @Author R-H
 * @Date 2024/3/41910
 * @Description
 */
public enum YunDaLogisticActionEnum {
    ACCEPT("收件扫描"),
    GOT("揽件扫描"),
    ARRIVAL("入中转"),
    DEPARTURE("出中转"),
    SENT("派件中"),
    INBOUND("第三方代收入库"),
    SIGNED("已签收"),
    OUTBOUND("第三方代收快递员取出"),
    SIGNFAIL("签收失败"),
    RETURN("退回件"),
    ISSUE("问题件"),
    OTHER("其他"),
    OVERSEA_IN("入库扫描"),
    OVERSEA_OUT ("出库扫描"),
    CLEARANCE_START("清关开始"),
    CLEARANCE_FINISH("清关结束"),
    CLEARANCE_FAIL("清关失败"),
    OVERSEA_ARRIVAL("干线到达"),
    OVERSEA_DEPARTURE("干线离开"),
    TRANSFER("转单");
    private String value;

    YunDaLogisticActionEnum(String value) {
        this.value = value;
    }

    public static String getAction(String status){
        for (YunDaLogisticActionEnum value : YunDaLogisticActionEnum.values()) {
            if (value.toString().equals(status)){
                return value.value;
            }
        }
        return "未知";
    }
}
